<?php
$id = intval($_REQUEST['ID']);
$holidayName = $_REQUEST['HolidayName'];
$date = $_REQUEST['Date'];

include 'conn.php';



$sql = "update holiday set HolidayName='$holidayName',Date='$date' where ID=$id";
$result = @mysql_query($sql);
if ($result){
	echo json_encode(array('success'=>true));
} else {
	echo json_encode(array('msg'=>'Some errors occured.'));
}
?>